﻿<%@ Control Language="C#" ClassName="PatItemCatalogoFields" %>

<asp:FormView ID="FormView1" runat="server">
	<ItemTemplate>
		<table border="0" cellpadding="3" cellspacing="1">
			<tr>
        <td class="literal"><asp:Label ID="lbldataIdItemInventario" runat="server" Text="Id Item Inventario:" AssociatedControlID="dataIdItemInventario" /></td>
        <td>
					<data:EntityDropDownList runat="server" ID="dataIdItemInventario" DataSourceID="IdItemInventarioPatItemInventarioDataSource" DataTextField="CodigoInternoItem" DataValueField="IdItemInventario" SelectedValue='<%# Bind("IdItemInventario") %>' AppendNullItem="true" Required="true" NullItemText="< Seleccione ...>" ErrorText="Required" />
					<data:PatItemInventarioDataSource ID="IdItemInventarioPatItemInventarioDataSource" runat="server" SelectMethod="GetAll"  />
				</td>
			</tr>
			<tr>
        <td class="literal"><asp:Label ID="lbldataIdCatalogo" runat="server" Text="Id Catalogo:" AssociatedControlID="dataIdCatalogo" /></td>
        <td>
					<data:EntityDropDownList runat="server" ID="dataIdCatalogo" DataSourceID="IdCatalogoPatCatalogoVehiculoDataSource" DataTextField="CodigoInternoCatalogo" DataValueField="IdCatalogo" SelectedValue='<%# Bind("IdCatalogo") %>' AppendNullItem="true" Required="true" NullItemText="< Seleccione ...>" ErrorText="Required" />
					<data:PatCatalogoVehiculoDataSource ID="IdCatalogoPatCatalogoVehiculoDataSource" runat="server" SelectMethod="GetAll"  />
				</td>
			</tr>
			<tr>
        <td class="literal"><asp:Label ID="lbldataCantidadXCatalogo" runat="server" Text="Cantidad X Catalogo:" AssociatedControlID="dataCantidadXCatalogo" /></td>
        <td>
					<asp:TextBox runat="server" ID="dataCantidadXCatalogo" Text='<%# Bind("CantidadXCatalogo") %>'></asp:TextBox><asp:RequiredFieldValidator ID="ReqVal_dataCantidadXCatalogo" runat="server" Display="Dynamic" ControlToValidate="dataCantidadXCatalogo" ErrorMessage="Required"></asp:RequiredFieldValidator><asp:RangeValidator ID="RangeVal_dataCantidadXCatalogo" runat="server" Display="Dynamic" ControlToValidate="dataCantidadXCatalogo" ErrorMessage="Invalid value" MaximumValue="2147483647" MinimumValue="-2147483648" Type="Integer"></asp:RangeValidator>
				</td>
			</tr>
			<tr>
        <td class="literal"><asp:Label ID="lbldataActivo" runat="server" Text="Activo:" AssociatedControlID="dataActivo" /></td>
        <td>
					<asp:RadioButtonList runat="server" ID="dataActivo" SelectedValue='<%# Bind("Activo") %>' RepeatDirection="Horizontal"><asp:ListItem Value="True" Text="Si" Selected="True"></asp:ListItem><asp:ListItem Value="False" Text="No"></asp:ListItem></asp:RadioButtonList>
				</td>
			</tr>
			
		</table>

	</ItemTemplate>
</asp:FormView>


